package ATM;

//the super class from where Deposit, Withdrawal and BalanceInquire transactions inherit members

public class Transaction
{

	private int accountNumber;
	private Screen screen;
	private BankDatabase bankDatabase;
	
	public Transaction (int userAccountNumber, Screen atmScreen, BankDatabase atmBankDatabase)
	{
		accountNumber = userAccountNumber;
		screen = atmScreen;
		bankDatabase = atmBankDatabase;
	}
	
	public int getAccountNumber()
	{
		return accountNumber;
	}
	
	public Screen getScreen()
	{
		return screen;
	}
	
	public BankDatabase getBankDatabase()
	{
		return bankDatabase;
	}
}
